<div class="videos index">
<h2><?php __('Videos');?></h2>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Agregar Video', true), array('action'=>'add')); ?></li>
	</ul>
</div>
<p>
<?php
echo $paginator->counter(array(
'format' => __('Pagina %page% de %pages%, Mostrando %current% registros de %count% total, empezando en %start%, terminando en %end%', true)
));
?>

<div class="paging">
	<?php echo $paginator->prev('<< '.__('Anterior', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Siguiente', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>
</p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('Video','foto');?></th>
	<th><?php echo $paginator->sort('titulo');?></th>

	<th><?php echo $paginator->sort('orden');?></th>
	<th><?php echo $paginator->sort('activo');?></th>

	<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($videos as $video):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $html->image('videos/'.$video['Video']['file']); ?>
		</td>
		<td>
			<?php echo $video['Video']['titulo']; ?>
		</td>

		<td>
			<?php echo $video['Video']['orden']; ?>
		</td>
		<td>
			<?php echo $video['Video']['activo']; ?>
		</td>

		<td class="actions">
			<?php echo $html->link(__('Ver', true), array('action'=>'view', $video['Video']['id'])); ?>
			<?php echo $html->link(__('Modificar', true), array('action'=>'edit', $video['Video']['id'])); ?>
			<?php echo $html->link(__('Eliminar', true), array('action'=>'delete', $video['Video']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $video['Video']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>

